package com.fbt.andon.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 停线表
 * </p>
 *
 * @author 冯涛
 * @since 2021-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StopLine对象", description="停线表")
public class StopLine implements Serializable {

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "StopLine{" +
                "id=" + id +
                ", plantId=" + plantId +
                ", factory='" + factory + '\'' +
                ", area='" + area + '\'' +
                ", line='" + line + '\'' +
                ", Installation='" + Installation + '\'' +
                ", type='" + type + '\'' +
                ", stationNumber=" + stationNumber +
                ", groupName='" + groupName + '\'' +
                ", stopLine=" + stopLine +
                ", openLine=" + openLine +
                ", intervalTime=" + intervalTime +
                ", vaildFrom=" + vaildFrom +
                ", shiftCode='" + shiftCode + '\'' +
                ", shift='" + shift + '\'' +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", createUser='" + createUser + '\'' +
                ", updateTime=" + updateTime +
                ", updateUser='" + updateUser + '\'' +
                '}';
    }

    @ApiModelProperty(value = "主键id(停线号)")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "所属工厂号(外键)普索")
    @Excel(name = "所属工厂号", cellType = Excel.ColumnType.NUMERIC)
    private Integer plantId;

    @ApiModelProperty(value = "工厂")
    @Excel(name = "工厂", cellType = Excel.ColumnType.NUMERIC)
    private String factory;

    @ApiModelProperty(value = "区域")
    @Excel(name = "区域", cellType = Excel.ColumnType.NUMERIC)
    private String area;

    @ApiModelProperty(value = "发生产线名")
    @Excel(name = "发生产线名", cellType = Excel.ColumnType.NUMERIC)
    private String line;

    @ApiModelProperty(value = "发生装置")
    @TableField("Installation")
    @Excel(name = "发生装置", cellType = Excel.ColumnType.NUMERIC)
    private String Installation;

    @ApiModelProperty(value = "所属班次")
    @Excel(name = "所属班次", cellType = Excel.ColumnType.NUMERIC)
    private String type;

    @ApiModelProperty(value = "发生人工号")
    @Excel(name = "发生人工号", cellType = Excel.ColumnType.NUMERIC)
    private Long stationNumber;

    @ApiModelProperty(value = "发生班组名")
    @Excel(name = "发生班组名", cellType = Excel.ColumnType.NUMERIC)
    private String groupName;

    @ApiModelProperty(value = "停线时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @Excel(name = "停线时间", cellType = Excel.ColumnType.NUMERIC)
    private Date stopLine;

    @ApiModelProperty(value = "开线时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @Excel(name = "开线时间", cellType = Excel.ColumnType.NUMERIC)
    private Date openLine;

    @ApiModelProperty(value = "间隔秒数")
    @Excel(name = "间隔秒数", cellType = Excel.ColumnType.NUMERIC)
    private int intervalTime;

    @ApiModelProperty(value = "有效起始日期")
    @Excel(name = "有效起始日期", cellType = Excel.ColumnType.NUMERIC)
    private Integer vaildFrom;

    @ApiModelProperty(value = "移位码")
    @Excel(name = "移位码", cellType = Excel.ColumnType.NUMERIC)
    private String shiftCode;

    @ApiModelProperty(value = "所属班组")
    @Excel(name = "所属班组", cellType = Excel.ColumnType.NUMERIC)
    private String shift;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @Excel(name = "创建时间", cellType = Excel.ColumnType.NUMERIC)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建者")
    private String createUser;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改者")
    private String updateUser;




}
